package com.example.newspapersmanageos.Entity;

public class Newspaper {
    private int id;
    private String name;//报刊名称
    private String price;//报刊价格
    private String publisher;//出版人
    private String date;//出版时间
    private String picture;//图片
    private Title title1;//标题一
    private Title title2;//标题二
    private Title title3;//标题三

    public Newspaper() {
    }

    public Newspaper(String name, String price, String publisher, String date, String picture) {
        this.name = name;
        this.price = price;
        this.publisher = publisher;
        this.date = date;
        this.picture = picture;
    }

    public Newspaper(int id,String name, String price, String publisher, String date, String picture) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.publisher = publisher;
        this.date = date;
        this.picture = picture;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Title getTitle1() {
        return title1;
    }

    public void setTitle1(Title title1) {
        this.title1 = title1;
    }

    public Title getTitle2() {
        return title2;
    }

    public void setTitle2(Title title2) {
        this.title2 = title2;
    }

    public Title getTitle3() {
        return title3;
    }

    public void setTitle3(Title title3) {
        this.title3 = title3;
    }

    @Override
    public String toString() {
        return "Newspaper{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price='" + price + '\'' +
                ", publisher='" + publisher + '\'' +
                ", date='" + date + '\'' +
                ", picture='" + picture + '\'' +
                '}';
    }
}
